home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 376-400 / disk_386 / xlispstat / src1.lzh / Headers / xlsfun.h < prev    next >
C/C++ Source or Header  |  1990-10-02  |  11KB  |  623 lines

  1. #ifndef XLSEXT_H
  2. #define XLSEXT_H
  3.  
  4. /* basics.c */
  5. extern LVAL xssequencep(),
  6.   xscopyvector(),
  7.   copyarray(),
  8.   xscopyarray(),
  9.   xssplitlist(),
  10.   xswhich(),
  11.   iseq(),
  12.   xsiseq(),
  13.   xsrepeat(),
  14.   subsequence(),
  15.   old_rowmajor_index(),
  16.   subarray(),
  17.   xsselect(),
  18.   xssetselect(),
  19.   xspermutearray();
  20. #ifdef SAVERESTORE
  21. extern LVAL xsrestore();
  22. #endif
  23.  
  24. /* betabase.c */
  25. extern void betabase();
  26.  
  27. /* bivnor.c */
  28. extern double bivnor();
  29.  
  30. /* cfft.c */
  31. extern int cfft();
  32.  
  33. /* cholesky.c */
  34. extern void choldecomp();
  35.  
  36. /* common.c */
  37. extern LVAL xsapropos(),
  38.   xsaproposlist(),
  39.   xsidentity(),
  40.   mklist(),
  41.   xsmklist(),
  42.   xsadjoin(),
  43.   xsfileposition(),
  44.   xsformat(),
  45.   xsforce_output(),
  46.   xscopylist(),
  47.   xscopyseq(),
  48.   argset2(),
  49.   reduce(),
  50.   xsreduce(),
  51.   map(),
  52.   xsmap(),
  53.   xselt(),
  54.   xscoerce(),
  55.   xsapply(),
  56.   xseval(),
  57.   xsload(),
  58.   xsgetreal(),
  59.   newicomplex(),
  60.   newdcomplex(),
  61.   newcomplex(),
  62.   xscomplexp(),
  63.   realpart(),
  64.   imagpart(),
  65.   xsrcomplex(),
  66.   xsrconjugate(),
  67.   xsrrealpart(),
  68.   xsrimagpart(),
  69.   xseql(),
  70.   xsequal(),
  71.   defconstant(),
  72.   defsym(),
  73.   xsdefconstant(),
  74.   xsdefparameter(),
  75.   xsdefvar(),
  76.   xsmakunbound(),
  77.   xsfmakunbound();
  78. extern int keep_do_strings();
  79. extern void set_function_docstring(),
  80.   set_variable_docstring();
  81. extern int checkfeatures();
  82. extern LVAL xstime(),
  83.   xs_get_internal_run_time(),
  84.   xs_get_internal_real_time(),
  85.   xsgetenv(),
  86.   concatenate),
  87.   xsconcatenate(),
  88.   xssome(),
  89.   xsevery(),
  90.   xsnotany(),
  91.   xsnotevery(),
  92.   xsunion(),
  93.   xsintersection(),
  94.   xsset_difference(),
  95.   xssubsetp(), 
  96.   xsremove_duplicates(),
  97.   xsbutlast(),
  98.   xsmake_string(),
  99.   xsfind(),
  100.   xsposition(),
  101.   xserror(),
  102.   xsbreak();
  103.  
  104. /* commonarrays.c */
  105. extern LVAL sxgetarray(),
  106.   xsgetdisplacedarray();
  107. extern int displacedarrayp(),
  108.   simplevectorp(),
  109.   checkdims(),
  110.   arrayp(),
  111.   checharrayp(),
  112.   inboundsp();
  113. extern LVAL arraydata(),
  114.   displacedarraydim();
  115. extern int arrayrank();
  116. extern LVAL makedisplacedarray(),
  117.   xsarrayp(),
  118.   xsarraydimensions(),
  119.   xsarrayrank(),
  120.   xsarraytotalsize(),
  121.   xsarraydimension(),
  122.   xsarrayinboundsp();
  123. extern int rowmajorindex();
  124. extern LVAL xsarrayrowmajorindex(),
  125.   xsaref(),
  126.   newarray(),
  127.   nested_list_to_array(),
  128.   xsmakearray();
  129. extern void evsetarrayelement();
  130. extern LVAL array_to_nested_list();
  131. extern void putarray();
  132.  
  133. /* commonmath.c */
  134. extern LVAL xadd(),
  135.   xsub(),
  136.   xmul(),
  137.   xdiv(),
  138.   xmin(),
  139.   xmax(),
  140.   xlogand(),
  141.   xlogior(),
  142.   xlogxor(),
  143.   binary(),
  144.   xrem(),
  145.   logbinary(),
  146.   xexpt(),
  147.   xlog(),
  148.   xgcd();
  149. extern void checkizero(),
  150.   checkfzero();
  151. extern LVAL xlognot(),
  152.   xabs(),
  153.   xadd1(),
  154.   xsub1(),
  155.   xsin(),
  156.   xcos(),
  157.   xtan(),
  158.   xexp(),
  159.   xsqrt(),
  160.   xfix(),
  161.   xfloat(),
  162.   xrand(),
  163.   xfloor(),
  164.   xceil(),
  165.   xround(),
  166.   xasin(),
  167.   xacos(),
  168.   xatan(),
  169.   xphase(),
  170.   xminusp(),
  171.   xzerop(),
  172.   xplusp(),
  173.   xevenp(),
  174.   xoddp(),
  175.   xlss(),
  176.   xleq(),
  177.   xequ(),
  178.   xneq(),
  179.   xgeq(),
  180.   xgtr(),
  181.   ccompare();
  182. extern double logarithm();
  183.  
  184. /* complex.c */
  185. extern Complex makecomplex();
  186. extern double phase(),
  187.   modulus();
  188. extern Complex cart2complex();
  189. extern LVAL cvcomplex();
  190. extern Complex polar2complex(),
  191.   csqrt(),
  192.   cexp(),
  193.   clog(),
  194.   cexpt(),
  195.   cadd(),
  196.   csub(),
  197.   cmul(),
  198.   cdiv(),
  199.   csin(),
  200.   ccos()c
  201.   ctan(),
  202.   cacos(),
  203.   catan();
  204.  
  205. /* compound.c */
  206. extern int compoundp();
  207. extern LVAL xscompoundp(),
  208.   checkcompound();
  209. extern int compounddatalen();
  210. extern LVAL xscompound_length(),
  211.   compounddataseq(),
  212.   xscompound_seq(),
  213.   makecompound(),
  214.   subr_map_elements(),
  215.   recursive_subr_map_elements(),
  216.   xsmap_elements();
  217.  
  218. /* ddistributions.c */
  219. extern LVAL xsrbinomialcdf(),
  220.   xsrpoissoncdf(),
  221.   xsrbinomialpmf(),
  222.   xsrpoissonpmf(),
  223.   xsrbinomialquant(),
  224.   xsrpoissonquant(),
  225.   xsrbinomialrand(),
  226.   xsrpoissonrand();
  227.  
  228. /* derivatives.c */
  229. extern void numergrad(),
  230.   numerhess();
  231.  
  232. /* distributions.c */
  233. extern LVAL xsrnormalcdf(),
  234.   xsrbetacdf(),
  235.   xsrgammacdf(),
  236.   xsrchisqcdf(),
  237.   xsrtcdf(),
  238.   xsrfcdf(),
  239.   xsrcauchycdf(),
  240.   xsrloggamma(),
  241.   xsrbnormcdf(),
  242.   xsrnormalquant(),
  243.   xsrcauchyquant(),
  244.   xsrbetaquant(),
  245.   xsrgammaquant(), 
  246.   xsrchisqquant(),
  247.   xsrtquant(),
  248.   xsrfquant(),
  249.   xsrnormaldens(),
  250.   xsrcauchydens(),
  251.   xsrbetadens(),
  252.   xsrgammadens(),
  253.   xsrchisqdens(),
  254.   xsrtdens(),
  255.   xsrfdens(),
  256.   xsruniformrand(),
  257.   xsrnormalrand(),
  258.   xsrcauchrand(),
  259.   xsrgammarand(),
  260.   xsrchisqrand(),
  261.   xsrtrand(),
  262.   xsrbetarand(),
  263.   xsrfrand();
  264.  
  265. /* functions.c */
  266. extern void evalfront(),
  267. #ifdef SBAYES
  268.   gevalfront(),
  269.   derivscalefront(),
  270.   samplefront(),
  271. #endif SBAYES
  272.   constfunc(),
  273.   maxfront(),
  274.   loglapdet(),
  275.   loglapfront();
  276. #ifdef SBAYES
  277. extern void moms1front(),
  278.   moms2front(),
  279.   lapmar1front();
  280. #endif SBAYES
  281.  
  282. /* gamln.c */
  283. extern double gamma();
  284.  
  285. /* gammabase.c */
  286. extern void gammabase();
  287. extern double ppgamma();
  288.  
  289. /* kernel.c */
  290. extern int kernel_smooth();
  291.  
  292. /* linalg.c */
  293. extern IVector ivector();
  294. extern RVector rvector();
  295. extern CVector cvector();
  296. extern void free_vector();
  297. extern IMatrix imatrix();
  298. extern RMatrix rmatrix();
  299. extern CMatrix cmatrix();
  300. extern void free_matrix();
  301. extern double macheps();
  302. extern LVAL xslu_decomp(),
  303.   xslu_solve(),
  304.   xslu_determinant(),
  305.   xslu_inverse(), 
  306.   xssv_decomp(),
  307.   xsqr_decomp(),
  308.   xschol_decomp(),
  309.   xsrcondest(),
  310.   xsmake_rotation(),
  311.   xsspline(),
  312.   xskernel_smooth(),
  313.   xskernel_dens(), 
  314.   xsbase_lowess(),
  315.   xssurface_contour(),
  316.   xsfft();
  317.  
  318. /* lowess.c */
  319. extern int lowess();
  320.  
  321. /* ludecomp.c */
  322. extern int crludcmp(),
  323.   crlubksh();
  324.  
  325. /* makerotation.c */
  326. extern void makerotation();
  327.  
  328. /* math.c */
  329. extern LVAL xsradd(),
  330.   xsrsub(),
  331.   xsrmul(),
  332.   xsrdiv(),
  333.   xsrrem(),
  334.   xsrmin(),
  335.   xsrmax(),
  336.   xsrexpt(),
  337.   xsrlog(),
  338.   xsrlogand(),
  339.   xsrlogior(),
  340.   xsrlogxor(),
  341.   xsrlognot(),
  342.   xsrabs(),
  343.   xsradd1(),
  344.   xsrsub1(),
  345.   xsrsin(),
  346.   xsrcos(),
  347.   xsrtan(),
  348.   xsrexp(),
  349.   xsrsqrt(),
  350.   xsrfix(),
  351.   xsrfloat(),
  352.   xsrrand(),
  353.   xsrfloor(),
  354.   xsrceil(),
  355.   xsrround(),
  356.   xsrasin(),
  357.   xsracos(),
  358.   xsratan(),
  359.   xsrphase(),
  360.   xsrminusp(),
  361.   xsrzerop(),
  362.   xsrplusp(),
  363.   xsrevenp(),
  364.   xsroddp(),
  365.   xsrlss(),
  366.   xsrleq(),
  367.   xsrequ(),
  368.   xsrneq(),
  369.   xsrgeq(),
  370.   xsrgtr();
  371.  
  372. /* matrices1.c */
  373. extern int matrixp();
  374. extern LVAL xsgetmatrix();
  375. extern int numrows(),
  376.   numcols();
  377. extern LVAL innerproduct();
  378. extern void copy_row(),
  379.   copy_column();
  380. extern LVAL xsmatmult(),
  381.   xscrossproduct(),
  382.   xsouterproduct(),
  383.   diagonal(),
  384.   xsdiagonal(),
  385.   identitymatrix(),
  386.   xsidentitymatrix(),
  387.   facelist(),
  388.   xsrowlist(),
  389.   xscolumnlist(),
  390.   xsbindrows(),
  391.   xsbindcols(),
  392.   xstranspose();
  393.  
  394. /* matrices2.c */
  395. extern LVAL xsmakesweepmatrix();
  396. extern int sweep_in_place();
  397. extern LVAL xssweepoperator();
  398.  
  399. /* minimize.c */
  400. extern int minworkspacesize();
  401. extern char *minresultstring();
  402. extern void minsetup(),
  403.   minsetoptions(),
  404.   minsupplyvalues(),
  405.   minimize(),
  406.   minresults();
  407. extern double pdlogdet();
  408.  
  409. /* nor.c */
  410. extern void normbase();
  411.  
  412. /* objectinit.c */
  413. extern void init_objects();
  414.  
  415. /* objects.c */
  416. extern LVAL xskind_of_p(),
  417.   xsobject_null_method();
  418. extern int mbject_p(),
  419.   kind_of_p(); 
  420. extern LVAL xsmake_object(),
  421.   xsreparent_object(),
  422.   slot_value();
  423. extern void check_hooks;
  424. extern LVAL set_slot_value,
  425.   xshas_slot(),
  426.   xsadd_slot(),
  427.   xsdelete_slot(),
  428.   xsslot_value(),
  429.   xshas_method(),
  430.   xsadd_method(),
  431.   xsdelete_method(),
  432.   xsmessage_method(),
  433.   send_message_stk(),
  434.   xmsendsuper(),
  435.   xscall_next(),
  436.   xmsend(),
  437.   xscall_method();
  438. extern void print_mobject();
  439. extern LVAL xsshow_object(),
  440.   xsparents(),
  441.   xsprecedence_list(),
  442.   xsobject_methods(),
  443.   xsobject_slots();
  444. extern void statobsymbols();
  445. extern int lex_slot_value();
  446. extern void object_isnew();
  447. extern LVAL xsobject_isnew();
  448. extern void xsaddmsg(),
  449.   xsaddslot();
  450. extern LVAL xsnewproto(),
  451.   init_root_object(),
  452.   xsobject_documentation(),
  453.   xsdefmeth();
  454. extern void xsaddinstanceslot(),
  455.   xssetslotval();
  456. extern LVAL xsdefproto(),
  457.   xsmakeproto(),
  458.   clanswer(),
  459.   clisnew(),
  460.   clnew();
  461. extern void obsymbols();
  462. extern LVAL obclass(),
  463.   obshow(),
  464.   obisnew(),
  465.   xsend();
  466. extern int xlobgetvalue(),
  467.   xlobsetvalue();
  468. extern LVAL xsendsuper();
  469. extern void xloinit();
  470.  
  471. /* optimize.c */
  472. #ifdef OPTIMIZE
  473. extern LVAL xsbracket_search(),
  474.   xsgolden_search(),
  475.   xsparabolic_search();
  476. #endif OPTIMIZE
  477.  
  478. /* ppnd.c */
  479. extern double ppnd();
  480.  
  481. /* qrdecomp.c */
  482. extern void qrdecomp();
  483.  
  484. /* rcondest.c */
  485. extern double rcondest();
  486. extern void backsolve();
  487.  
  488. /* sortdata.c */
  489. extern LVAL lsort(),
  490.   xssortdata(),
  491.   xsorder(),
  492.   xsrank();
  493.  
  494. /* splines.c */
  495. extern int fit_spline();
  496.  
  497. /* statfloat.c */
  498. extern double f_plus(),
  499.   f_minus(),
  500.   f_times(),
  501.   f_divide(),
  502.   f_log(),
  503.   f_exp(),
  504.   f_sqrt(),
  505.   f_expt();
  506.  
  507. /* statinit.c */
  508. extern void statfinit(),
  509.   statsymbols();
  510.  
  511. /* statistics.c */
  512. extern LVAL xssum(),
  513.   xsprod(),
  514.   xsmin(),
  515.   xsmax(),
  516.   xscount(),
  517.   elementseq(),
  518.   xselement_seq(),
  519.   xsquantile(), 
  520.   xsifelse(),
  521.   xsmean(),
  522.   xssample();
  523.  
  524. /* studentbase.c */
  525. extern void studentbase();
  526. extern double ppstudent();
  527.  
  528. /* svdecomp.c */
  529. extern void scdcmp();
  530.  
  531. /* uni.c */
  532. extern LVAL newrandomstate();
  533. extern double uni();
  534. extern int osrand();
  535. extern LVAL xsmake_random_state(),
  536.   xsrandom_state_p();
  537.  
  538. /* utilities.c */
  539. extern int llength();
  540. extern LVAL list2(),
  541.   list3(),
  542.   peekarg();
  543. extern LVAL getnextarg(),
  544.   getnextelement(),
  545.   xsgetsequence();
  546. extern void setfixnum(),
  547.   setnextelement();
  548. extern LVAL checknonnegint();
  549. extern double makedouble();
  550. extern void pushargvec();
  551. extern LVAL xsapplysubr(),
  552.   xscallsubrvec(),
  553.   xscallsubr1(),
  554.   xscallsubr2(),
  555.   xsfuncall1(),
  556.   xsfuncall2();
  557. #ifdef DODO
  558. extern char *xstcalloc();
  559. extern void xstfree();
  560. extern double *data_to_double(),
  561.   double_to_matrix(),
  562.   double_to_sequence();
  563. #endif DODO
  564. extern LVAL coerce_to_list(),
  565.   coerce_to_vector(),
  566.   copylist(),
  567.   copyvector(),
  568.   splitlistd(),
  569.   lrepeat(),
  570.   nested_list_to_list();
  571. extern int xsboolkey();
  572.  
  573. /* utilities2.c */
  574. extern LVAL integer_list_2(),
  575.   integer_list_3(),
  576.   integer_list_4(),
  577.   send_message(),
  578.   send_message1(),
  579.   send_message_1L(),
  580.   apply_send(),
  581.   double_list_2(),
  582.   make_string(),
  583.   xsnumtostring(),
  584.   xssysbeep();
  585.  
  586. /* windows.c */
  587. extern void get_window_bounds();
  588. extern LVAL xsshowwindow(),
  589.   xshidewindow(),
  590.   xswindow_title(),
  591.   xswindow_location(),
  592.   xsscreen_size(),
  593.   xsscreen_has_color(),
  594.   xswindow_size(),
  595.   xswindow_frame_location(),
  596.   xswindow_frame_size();
  597.  
  598. /* xsbayes.c */
  599. extern char *S_alloc();
  600. extern void call_S(),Recover();
  601. extern LVAL xsnumgrad(),
  602.   xsnumhess(),
  603.   xsminfo_isnew(),
  604.   xsminfo_maximize(),
  605.   xsminfo_loglap();
  606. #ifdef DODO
  607. extern xsscaled_c2_eval(),
  608.   xsscaled_c2_grad(),
  609.   xsscaled_c2_hess();
  610. #endif DODO
  611. extern LVAL xsaxpy();
  612.  
  613. /* xsnewplots.c */
  614. extern LVAL iview_hist_adjust_to_data();
  615.   xshistogram(),
  616.   xsplot_points(),
  617.   xsplot_lines(),
  618.   xsspin_plot(),
  619.   xsscatterplot_matrix(),
  620.   xsnamelist();
  621.  
  622. #endif XLSEXT_H
  623.